<?php $user = $session->read('User'); ?>
 
<?php if(file_exists(CONTROLLERS.'install_controller.php')) : ?>
<p class="error">Installer file is present : please remove <code><?php echo CONTROLLERS.'install_controller.php'; ?></code>.</p>
<?php endif; ?>
 
<h3>Session info</h3>
<ul>
	<li>Last login : <?php echo $user['last_login']; ?></li>
	<li>Last ip : <?php echo $user['last_ip']; ?></li>
	<li>Created : <?php echo $user['created']; ?></li>
	<li>Modified : <?php echo $user['modified']; ?></li>
</ul>
<h3>Versions</h3>
<ul>
	<li>x6tm_cms : <?php echo $version['x6tm_cms']; ?></li>
	<li>Scriptaculous : <?php echo $version['scriptaculous']; ?></li>
</ul>
<h3>Last Comment</h3>
<ul>
<?php if(!$last_comments) : ?>
	<li><?php echo __('No new comments'); ?></li>
<?php else : ?>
<?php foreach($last_comments as $comment): ?>
	<li>
		<?php echo $html->link($comment['Comment']['author'], array('controller' => 'pages', 'action' => 'view', 'id' => $comment['Page']['slug'].'#comment_'.$comment['Comment']['id'])); ?>
		<small>
			<?php echo $html->link('edit', array('controller' => 'comments', 'action' => 'edit', 'id' => $comment['Comment']['id'])); ?>
			<?php //echo $html2->link('delete', array('controller' => 'comments', 'action' => 'delete', 'id' => $comment['Comment']['id']), 'Are you sure to delete this comment ?'); ?>
		</small>
	</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
